<!DOCTYPE html>
<!--[if lt IE 9]>
<html class='lt-ie9 no-js' lang='en'>
<![endif]-->
<!--[if gte IE 9]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="csrf-param" content="_csrf">
    <meta name="csrf-param" content="_csrf">
    <meta name="csrf-token"
          content="ELFWvNAajAG_jadI1x-y1bJV-d6b_QXyf29FF5mkrSZhgy_qoU3Ka9vi3zmFT4C3-zauncyidKNLDRdvwfubEw==">
    <link rel="Shortcut Icon" href="/images/newimg/icon_16.png">
    <meta name="keywords" content="车点点,违章查询,洗车,免费洗车,上门洗车,小保养,上门保养,养车,汽车美容,车险投保,保险询价,汽车维修,道路救援,汽车服务,补胎,四轮定位,抛光封釉,车身打蜡"/>
    <meta name="description" content="车点点提供违章查询、洗车美容、维修保养、车险投保、道路救援、车务代办、养车知识、周边商家查询等服务！车点点－洗车神器，官网违章查询，加油95折！"/>
    <title>车点点-下载车点点，免费洗车一整年</title>
    <link rel="stylesheet" type="text/css" href="css/main.css">
    <link rel="stylesheet" type="text/css" href="css/media.css">
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
    <script src="js/main.js?ver=43156"></script>
    <script type="text/javascript">
        function Statistics(channel, type, key) {
            //$.getScript('https://open.chediandian.com/statistics/cddanalytics?callback=1&channel=' + channel + '&type=' + type + '&key=' + key, function () { });
        };
    </script>
    <script src="//cdd-static.b0.upaiyun.com/statics/tongji.js"></script>
</head>
<style>
    a:focus {
        outline: none;
    }
</style>
<body>
<div class="g-hd f-prz">
    <div class="m-nav">
        <div class="g-main f-cb">
            <div class="logo f-fl">
                <a href="/home/index" title="车点点">
                    <h1>车点点</h1>
                </a>
            </div>
            <div class="nav f-fr">
                <ul class="f-cb">
                    <li class="active"><a href="/" id="first">首页</a></li>
                    <li>
                        <a href="javascript:;" id="second">商户入口</a>
                        <div class="u-snav">
                            <a href="/goto_login" target="_blank">商户后台</a>
                            <a href="/goto_addshop" target="_blank">商户加盟</a>
                        </div>
                    </li>
                    <li><a href="/goto_hezuo" id="third">合作机构</a></li>
                    <li>
                        <a href="/goto_newslist" id="fourth">新闻资讯</a>
                    </li>
                    <li><a href="/goto_callme" id="five">联系我们</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="container">
    <link rel="stylesheet" href="css/css.css">
    <link rel="stylesheet" href="css/cdd.css">

    <script src="//cdd-static.b0.upaiyun.com/Echediandian/js/module/layer/layer.js"></script>
    <script src="js/Index.js"></script>
    <script src="//cdd-static.b0.upaiyun.com/front/activity/yk-common.js?v=3" type="text/javascript"></script>
    <style>
        .closeBusLicense, .closeStoreImg {
            cursor: pointer;
        }

        .divUploader {
            width: 120px;
            height: 30px;
            background-color: Red;
            background: url(https://www.chediandian.com/images/join/uploadImg_1.png);
            float: left;
        }

        .divUploader2 {
            width: 120px;
            height: 30px;
            background-color: Red;
            background: url(https://www.chediandian.com/images/join/uploadImg_2.png);
            float: left;
        }

        .help-block {
            float: right;
            padding-left: 10px;
            padding-top: 6px;
            color: red;
        }

        .error {
            color: Red;
        }

        /*a:link, a:visited {*/
        /*color: silver;*/
        /*}*/
        p a:link, p a:visited {
            color: #999;
        }

        .ield-joinform-verifycode p {
            color: red;
        }

        .common_input {
            width: 60%;
            height: 30px;
        }

        .heightDoc {
            height: 30px;
            width: 25%;
        }

        .positionButton {
            height: 30px;
            width: 25%;
            background-color: #ff9100;
            color: white;
            border: 0;
        }

        .typeInput {
            position: absolute;
            left: 10px;
            top: 20px;
            z-index: 1;
            font-size: 12px;
            opacity: 0;
            display: block;
            width: 20%;
            height: 30px;
        }

        .z-dis {
            color: #999 !important;
        }
    </style>

    <div class="j_banner auto mt20" style="margin-top: 140px;width: 1200px">
        <img class="db" src="img/jb011.png" width="1200" height="280"/></div>
    <div class="jiameng auto flx mt20" style="margin-bottom: 48px;width: 1200px">
        <div class="jiameng_right">
            <div class="jm_main_tit flx">
                <h2 class="f20 n lt">
                    联系我们
                </h2><span class="fw lt">无需任何加盟费</span>
            </div>
            <p class="jm_photo" style="margin-top: 20px;">
                400-693-5000 转 5</p>
        </div>
        <div class="jm_main">
            <div class="jm_main_tit flx">
                <h2 class="f20 n lt">
                    基础信息</h2>
            </div>
            <p class="f14 fo">
                商户应具有洗车、美容、快修、快保服务能力；<br/>有搭电换胎救援等其他能力请在下方备注说明中填写</p>
            <form id="myForm" name="myForm" class="layui-form">
                <table cellpadding="0" cellspacing="0" class="jm_tb mt10" style="width: 800px">
                    <tr>
                        <th>
                            <label for="ContactPhone">手机号码：</label>
                        </th>
                        <td>
                            <input type="tel" maxlength="11" class="common_input" id="ContactPhone"
                                   name="merchantsPhone" placeholder="">
                            <!--                    <input type="button" value="验证" class="common_input" style="width: 10%" id="getCode">-->
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="StoreNum">店铺数量：</label>
                        </th>
                        <td>
                            <select class="jm_select common_input" id="StoreNum" name="merchantsShopnumber">
                                <option value="0">请选择</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="Name">店铺名称：</label>
                        </th>
                        <td>
                            <input type="text" class="common_input" id="Name" name="merchantsShopname" placeholder="">
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="ContactName">负责人姓名：</label>
                        </th>
                        <td>
                            <input type="text" class="common_input" id="ContactName" name="merchantsPrincipalname"
                                   placeholder="">
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="Address">详细地址：</label>
                        </th>
                        <td colspan="2">
                            <input type="text" name="merchantsAddress" id="detail_pos"
                                   style="line-height: 0px;height: 30px;margin-top: 3px;width: 51%"
                                   placeholder="填写详细地址">
                            <input type="hidden" name="" id="jw_position" value="">
                            <input type="button" class="positionButton" id="start_position" value="输入完成，定位">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="position: relative;height: 300px">
                            <div id="showMap"
                                 style="position: absolute;margin-left:108px;width: 530px;height: 290px;top: 0; border: 1px solid gray;overflow:hidden;">

                            </div>
                        </td>
                    </tr>

                </table>
                <div class="jm_main_tit flx mt40">
                    <h2 class="f20 n lt">
                        详细信息<span class="g9">（选填）</span></h2>
                </div>
                <p class="f14 fo">
                    填写详细信息，有利于优先联系，快速签约</p>
                <table cellpadding="0" cellspacing="0" class="jm_tb mt10" style="width:800px;">

                    <tr>
                        <th>
                            <label for="ShopClass">营业项目：</label>
                        </th>
                        <td class="jm_lab" id="business_project">
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="changeProject();"
                                       name="merchantsBusinesspro" value="-1"/><span class="lt">全选</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="洗车"/><span class="lt">洗车</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="美容"/><span class="lt">美容</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="装潢"/><span class="lt">装潢</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="油漆"/><span class="lt">油漆</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="维修"/><span class="lt">维修</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="保养"/><span class="lt">保养</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="救援"/><span class="lt">救援</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="年检"/><span class="lt">年检</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="保险"/><span class="lt">保险</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="理赔"/><span class="lt">理赔</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="轮胎服务"/><span class="lt">轮胎服务</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="checkbox" onchange="removeAllCheck(this);"
                                       name="merchantsBusinesspro" value="夜间救援"/><span class="lt">夜间救援</span>
                            </label>
                        </td>
                    </tr>

                    <tr>
                        <th valign="top" style="padding-top: 10px">
                            <label for="licenseImg">营业执照：</label>
                            <input type="hidden" value="" name="merchantsLicense"/>
                        </th>
                        <td>
                            <a id="pickLicense" href="javascript:$('#uploadLicense').click();"
                               style="position: relative;">
                                <div class="divUploader">
                                    <input type="file" id="uploadLicense" class="typeInput" name="merchantsLicense">
                                </div>
                            </a>
                            <span class="db g9 f12 mt10">&nbsp;&nbsp;（营业执照可以是清晰彩色原件电子版、扫描件或者数码拍摄照片。<span
                                    style=" color:red; font-weight:bold;">*支持jpg、png格式</span>)</span>
                            <ul class="jm_pic mt10 flx" id="ulBusLicense">

                            </ul>
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="hotTelNum">热线电话：</label>
                        </th>
                        <td>
                            <input type="text" class="common_input" id="hotTelNum" name="merchantsHotlinepho"
                                   placeholder="请填写热线电话">
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="BusinessArea">营业面积：</label>
                        </th>
                        <td>
                            <select class="jm_select heightDoc" id="BusinessArea" name="merchantsArea">
                                <option value="-1">请选择</option>
                                <option value="0">200平米以下</option>
                                <option value="1">200-400平米</option>
                                <option value="2">400-600平米</option>
                                <option value="3">600-1000平米</option>
                                <option value="4">1000平米以上</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="WorkNum">员工数量：</label>
                        </th>
                        <td>
                            <select class="jm_select heightDoc" id="WorkNum" name="merchantsEmplnumber">
                                <option value="0">请选择</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="WashCarNum">洗车工位数：</label>
                        </th>
                        <td colspan="2">
                            <select class="jm_select heightDoc" id="WashCarNum" name="merchantsCarwashnum">
                                <option value="0">请选择</option>
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                            <label for="HairdressingNum" style="margin-left: 10px">美容工位数：</label>
                            <select class="jm_select heightDoc" id="HairdressingNum" name="merchantsBeautynum">
                                <option value="0">请选择</option>
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="MaintenanceNum">保养工位数：</label>
                        </th>
                        <td colspan="2">
                            <select class="jm_select heightDoc" id="MaintenanceNum" name="merchantsMainnum">
                                <option value="0">请选择</option>
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                            <label for="FixCarNum" style="margin-left: 10px">维修工位数：</label>
                            <select class="jm_select heightDoc" id="FixCarNum" name="merchantsSernum">
                                <option value="0">请选择</option>
                                <option value="0">0</option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="8">8</option>
                                <option value="9">9</option>
                                <option value="10">10</option>
                                <option value="11">11</option>
                                <option value="12">12</option>
                                <option value="13">13</option>
                                <option value="14">14</option>
                                <option value="15">15</option>
                                <option value="16">16</option>
                                <option value="17">17</option>
                                <option value="18">18</option>
                                <option value="19">19</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="startShopTime">开业时间：</label>
                        </th>
                        <td>
                            <input type="text" class="common_input" id="startShopTime" name="merchantsOpeningdate"
                                   placeholder="请填写店铺开业的时间">
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="ShopClass">商铺性质：</label>
                        </th>
                        <td class="jm_lab">
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsNature" value="1"/><span
                                    class="lt">洗车店</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsNature" value="2"/><span
                                    class="lt">美容装潢</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsNature" value="3"/><span
                                    class="lt">服务连锁店</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsNature" value="4"/><span
                                    class="lt">维修养护中心</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsNature" value="5"/><span
                                    class="lt">品牌形象店</span>
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="IsIndependent">独立洗车工位：</label>
                        </th>
                        <td class="jm_lab">
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsIndepwash" value="1"/><span
                                    class="lt">有</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsIndepwash" value="0"/><span
                                    class="lt">无</span>
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="IsReset">客休区：</label>
                        </th>
                        <td class="jm_lab">
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsUsertake" value="1"/><span
                                    class="lt">有</span>
                            </label>
                            <label class="flx">
                                <input class="lt" type="radio" name="merchantsUsertake" value="0"/><span
                                    class="lt">无</span>
                            </label>
                        </td>
                    </tr>

                    <tr>
                        <th valign="top" style="padding-top: 10px">
                            <label for="">门店展示：</label>
                        </th>
                        <td>
                            <a id="pickShop" href="javascript:$('#uploadShopImg').click();">
                                <div class="divUploader2">
                                    <input type="file" id="uploadShopImg" class="typeInput" name="merchantsPicture">
                                </div>
                            </a>
                            <span class="db g9 f12 mt10">（门头图、工位图、休息区、展柜图片，最多上传5张。<span
                                    style=" color:red; font-weight:bold;">第一张图将作为门头图请注意！*支持jpg,png格式</span>)</span>
                            <ul class="jm_pic mt10 flx" id="ulStoreImg">

                            </ul>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="note">备注：</label>
                        </th>
                        <td>
                            <input type="text" class="jm_cont" id="note" style="border: 1px solid #999;"
                                   name="merchantsNote"></input>
                        </td>
                    </tr>

                    <tr>
                        <th>&nbsp;</th>
                        <td class="jm_btn">
                            <button class="positionButton" type="button" style="height: 40px;font-size: 16px;"
                                    id="goJoin">提交加盟申请
                            </button>
                            <span class="db g9 mt10">（提交审核后，会有区域负责人联系您）</span>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <input type="hidden" name="merchantsLongitude" id="busLicense" value=""/>
        <input type="hidden" name="merchantsEndtime" id="storeImg" value=""/>
        <input type="hidden" name="merchantsBusiness" id="busLicense" value=""/>
        <input type="hidden" name="merchantsScore" id="storeImg" value=""/>
        <input type="hidden" name="merchantsState" id="storeImg" value=""/>

    </div>
    <script type="text/javascript"
            src="https://api.map.baidu.com/api?ak=57xZUnzw298DaTEeNKqWwGn3&v=2.0&services=false"></script>

    <script>
        //    $('div.top').find('div.enterIn:eq(1)').children('a').addClass('navActive');
        $("#second").attr("style", "color: #ff9100;");
        $("#fourth").attr("style", "");
        $("#first").attr("style", "color: black;");
        $("#third").attr("style", "");
        $("#five").attr("style", "");

    </script>
    <script>


        /*
        layui.use('form', function(){
              var form = layui.form();

              //监听提交
              form.on('submit(addshop)', function(data){
                $.ajax({
                    contentType:"application/json",
                    type:"POST",//请求类型
                    url:"/action_addshop",//请求的url
                    data:data.field,//请求参数
                    dataType:"json",//ajax接口（请求url）返回的数据类型
                    success:function(data){//data：返回数据（json对象）
                        if(data==true){
                            layer.msg("添加成功");
                            //location.href="";
                        }else{
                            layer.msg("添加失败");
                            //location.href="";
                        }
                    },
                    error:function(data){
                        layer.msg("失败！");
                    }
                });
                return false;
              });
            });
            */
        var licenseImgNum = 0, shopImgNum = 0;

        $.inputLimit($('#ContactPhone'), 1, 1);


        $(document).ready(function () {

            $("#joinform-verifycode").click(function () {
                $(this).parent().find('p').show();
                $(this).parent().find('p').html('');
            });
        });


        var allow = true;

        function getCode(mobile) {
            if (!allow) return false;
            var lay = layer.load(5);
            $.ajax('/join/get-code?mobile=' + mobile, {
                type: 'get',
                dataType: 'json'
            }).done(function (data) {
                layer.close(lay);
                if (data.Code === 1) {
                    showTip(data.Msg, 5);
                } else {
                    showTip(data.Msg, 4);
                }
                var num = 60;
                var timer = setInterval(function () {
                    if (num < 0) {
                        clearInterval(timer);
                        allow = true;
                        $('#getCode').val('获取验证码').removeClass('z-dis');
                    } else {
                        $('#getCode').val('获取中(' + num + ')').addClass('z-dis');
                    }
                    num--;
                }, 1000);
                allow = false;
            });
        }


        //选择地区方法
        /*function provinceChange(obj) {
            var locationId = $(obj).val();
            $.ajax('https://www.chediandian.com/join/province-change',{
                type:'get',
                dataType:'json',
                data:{'locationId':locationId}
            }).done(function (data) {
                if(data.Code === 1){
                    var cities = data.Msg.city,districts = data.Msg.district;
                    var cityLength = cities.length,districtLength = districts.length;
                    var cityHtml = '',districtHtml = '';
                    for(var i = 0;i < cityLength;i++){
                        cityHtml += '<option value="'+cities[i].locationId+'">'+cities[i].name+'</option>';
                    }
                    for(var j = 0;j < districtLength;j++){
                        districtHtml += '<option value="'+districts[j].locationId+'">'+districts[j].name+'</option>';
                    }
                    $('#city').html(cityHtml);
                    $('#district').html(districtHtml);
                }else{
                    showTip(data.Msg,4);
                }
                userSearch($('#province option:selected').text()+$('#city option:selected').text()+$('#district option:selected').text(),'');
            });
        }*/

        function cityChange(obj) {
            var locationId = $(obj).val();
            $.ajax('/join/city-change', {
                type: 'get',
                dataType: 'json',
                data: {'locationId': locationId}
            }).done(function (data) {
                if (data.Code === 1) {
                    var districts = data.Msg.district;
                    var districtLength = districts.length;
                    var districtHtml = '';
                    for (var j = 0; j < districtLength; j++) {
                        districtHtml += '<option value="' + districts[j].locationId + '">' + districts[j].name + '</option>';
                    }
                    $('#district').html(districtHtml);
                } else {
                    showTip(data.Msg, 4);
                }
                userSearch($('#province option:selected').text() + $('#city option:selected').text() + $('#district option:selected').text(), '');
            });
        }

        function getCity(locationId, cityId) {
            $.ajax('/join/province-change', {
                type: 'get',
                dataType: 'json',
                data: {'locationId': locationId}
            }).done(function (data) {
                if (data.Code === 1) {
                    var cities = data.Msg.city;
                    var cityLength = cities.length;
                    var cityHtml = '';
                    for (var i = 0; i < cityLength; i++) {
                        cityHtml += '<option ' + ((cityId == cities[i].locationId) ? 'selected' : '') + ' value="' + cities[i].locationId + '">' + cities[i].name + '</option>';
                    }
                    $('#city').html(cityHtml);
                } else {
                    showTip(data.Msg, 4);
                }
            });
        }

        function getDistrict(locationId, districtId) {
            $.ajax('/join/city-change', {
                type: 'get',
                dataType: 'json',
                data: {'locationId': locationId}
            }).done(function (data) {
                if (data.Code === 1) {
                    var districts = data.Msg.district;
                    var districtLength = districts.length;
                    var districtHtml = '';
                    for (var j = 0; j < districtLength; j++) {
                        districtHtml += '<option ' + ((districtId == districts[j].locationId) ? 'selected' : '') + ' value="' + districts[j].locationId + '">' + districts[j].name + '</option>';
                    }
                    $('#district').html(districtHtml);
                } else {
                    showTip(data.Msg, 4);
                }
            });
        }

        function changePostion(obj) {
            userSearch($('#province option:selected').text() + $('#city option:selected').text() + $(obj).find(':selected').text(), '');
        }

        function changeProject() {
            var checkTag = true;
            $('#business_project input').each(function () {
                if (parseInt($(this).val()) === -1) checkTag = $(this).prop('checked');
                $(this).prop('checked', checkTag);
            });

        }

        function removeAllCheck(obj) {
            var checkValue = '-1,';
            $('input:checkbox[name="BusinessItem"]:checked').each(function () {
                checkValue += $(this).val() + ',';
            });
            var checkFlag = (checkValue == "-1,0,1,2,3,4,5,6,7,8,9,10,11,") ? true : false;
            $('input:checkbox[name="BusinessItem"]').each(function () {
                var value = $(this).val();
                if (parseInt(value) === -1 && !checkFlag) {
                    $(this).prop('checked', false);
                } else if (parseInt(value) === -1 && checkFlag) {
                    $(this).prop('checked', true);
                }
            });
        }


        function showTip(msg, flag, obj) {
            if (flag === 1) {
                layer.tips(msg, '#' + obj, {time: 3000});
            } else if (flag === 2) {
                layer.alert(msg, {
                    icon: 1,
                    skin: 'layer-ext-moon'
                })
            } else if (flag === 3) {
                layer.alert(msg, {
                    skin: 'layui-layer-molv' //样式类名
                    , closeBtn: 0
                });
            } else if (flag === 4) {
                layer.msg(msg, {
                    time: 2000
                });
            } else if (flag === 5) {
                layer.msg(msg, {
                    time: 2000,
                    icon: 1
                });
            }
        }

        function isMobile(str) {
            return /^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(str);
        }


    </script>
    <script type="text/javascript">
        var channel = 1;
        var type = 1;
        Statistics(channel, type, '商户加盟');
    </script>
</div>

<!-- 底部 -->
<div class="g-fd">
    <div class="g-main f-cb">
        <div class="g-mn4">
            <div class="g-mnc4 f-cb">
                <div class="g-mn5">
                    <!-- 合作伙伴 -->
                    <div class="u-partner">
                        <h3 class="tt">合作伙伴</h3>
                        <div class="ct">
                            <ul class="f-cb">
                                <li><span class="icon_partner icon_picc"></span></li>
                                <li><span class="icon_partner icon_pc"></span></li>
                                <li><span class="icon_partner icon_an"></span></li>
                                <li><span class="icon_partner icon_lt"></span></li>
                                <li><span class="icon_partner icon_yd"></span></li>
                                <li><span class="icon_partner icon_dx"></span></li>
                                <li>
                                    <span class="icon_partner icon_icbc"></span>
                                </li>
                                <li>
                                    <span class="icon_partner icon_abc"></span>
                                </li>
                                <li>
                                    <span class="icon_partner icon_cbc"></span>
                                </li>
                                <li>
                                    <span class="icon_partner icon_bc"></span>
                                </li>
                                <li>
                                    <span class="icon_partner icon_bf"></span>
                                </li>
                                <li>
                                    <span class="icon_partner icon_cmb"></span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <!-- 关注 -->
                <div class="u-attention f-fr">
                    <div class="ct">
                        <img src="img/code-wxc.png">
                        <img src="img/code-wxy.png" alt="">
                    </div>
                </div>
            </div>
        </div>
        <!-- 关于我们 -->
        <div class="u-about f-fl">
            <h3 class="tt">联系我们</h3>
            <div class="ct">
                <p>邮箱：hezuo@hzwanglan.com</p>
                <p>电话：400-693-5000</p>
                <p>7X24小时在线</p>
            </div>
        </div>
    </div>
</div>
<!-- 版权声明 -->
<div class="m-cprt">
    <div class="g-main">
        <p class="f-cb">
            <a href="/home/index?tag=1">网站首页</a>|
            <a href="/about/index?tag=1">关于我们</a>|
            <a href="/about/index?flag=2&tag=1">服务条款</a>|
            <a href="/about/index?flag=1&tag=1">友情链接</a>
            <span>©2018 杭州网兰科技有限公司  浙ICP备14008802号-浙B2-20140216</span>
        </p>

    </div>
</div>
<div id="top_div">
    <img src="img/top.png">
</div>

<script type="text/javascript">
    $('#goJoin').click(function () {
        $.ajax({
            type: 'POST',
            dataType: 'JSON',
            url: 'action_addshop',
            data: $("#myForm").serialize(),
            success: function (data) {//data：返回数据（json对象）
                if (data == true) {
                    layer.msg("添加成功");
                    //location.href="";
                } else {
                    layer.msg("添加失败");
                    //location.href="";
                }
            },
            error: function (data) {
                layer.msg("失败！");
            }
        })
    });

</script>
</body>
</html>
